#include "java.h"
#if defined Q_OS_ANDROID
#include <QAndroidJniObject>
#endif
JNI::JNI(QObject *parent) : QObject(parent)
{

}

JNI::~JNI()
{

}

QString JNI::contacts() const
{
#if defined Q_OS_ANDROID
     QAndroidJniObject listjson = QAndroidJniObject::callStaticObjectMethod<jstring>
            ("Contacts" // class name
             , "contacts" // method name
             //, "(V)Ljava/lang/String;" // signature
             );

     return listjson.toString();
#else
    return "[]";
#endif

}

